package Day3;

import java.util.Scanner;

public class TextScenic {
    public static void main(String[] args) {
        Scenic p = new Scenic();
        Scanner input = new Scanner(System.in);
        do {
            System.out.print("请输入姓名：");
            p.name = input.next();
            if(p.name.equals("n")){
                break;
            }
            System.out.print("请输入年龄：");
            p.age = input.nextInt();
            p.sum = 20;
            p.Show();
            System.out.println();

        }while (true);

        System.out.println("退出程序！");

    }
}
